﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using CrmContacto.Contracts.Contracts.Localization;
using Web.Framework.Svc;

namespace CrmContacto.Contracts.Services
{
    [ServiceContract]
    public interface ILocalization
    {
        [OperationContract]
        [FaultContract(typeof(WebFrameworkFaultException))]
        List<Lenguaje> ObtenerLenguajes();

        [OperationContract]
        [FaultContract(typeof(WebFrameworkFaultException))]
        Lenguaje ObtenerLenguajeById(string Id);

        [OperationContract]
        [FaultContract(typeof(WebFrameworkFaultException))]
        Lenguaje SaveLenguaje(Lenguaje lenguaje);

        [OperationContract]
        [FaultContract(typeof(WebFrameworkFaultException))]
        void EliminarLenguaje(string id);

        [OperationContract]
        [FaultContract(typeof(WebFrameworkFaultException))]
        PalabraClave GetPalabraClaveLenguaje(string LenguajeId, string ClaveId);

        [OperationContract]
        [FaultContract(typeof(WebFrameworkFaultException))]
        PalabraClave SavePalabraClaveLenguaje(PalabraClave palabraClave);
    }
}
